package com.shey.imageloader.bean;

import android.widget.ImageView;

import com.shey.utils.Md5Helper;

import java.lang.ref.Reference;
import java.lang.ref.WeakReference;

/**
 * Created by SheyChen on 2015/12/2 15:04.
 * Email 1768037936@qq.com
 * 位图请求
 */
public class BitmapRequest {

    public Reference<ImageView> imageViewReference;
    public String imageUri = "";
    public String imageUriMD5 = "";

    public BitmapRequest(ImageView imageView, String uri) {
        imageViewReference = new WeakReference<ImageView>(imageView);
        this.imageUri = uri;
        imageView.setTag(uri);
        this.imageUriMD5 = Md5Helper.toMD5(uri);
    }
}
